<#include "/layout/header.ftl" />

<script>
	function login_click()
	{
		var obj = $.getObject("#div_form");
		$.simpleAjax("/app/login", obj, function(o)
		{
			$.toast("登录成功", function()
			{
				window.location = "${path}/index";
			});
		});

	}
</script>

<div class="logo">
	<img src="${rc_path}/images/logo.png">
</div>
<div class="weui-cells__title">登录信息</div>
<div class="weui-cells weui-cells_form" id="div_form">
	<div class="weui-cell">
		<div class="weui-cell__hd"><label class="weui-label">手机号</label></div>
		<div class="weui-cell__bd">
			<input type="number" name="mobile" class="weui-input" pattern="[0-9]*" placeholder="请输入手机号" />
		</div>
	</div>
	<div class="weui-cell">
		<div class="weui-cell__hd"><label class="weui-label">密码</label></div>
		<div class="weui-cell__bd">
			<input type="password" name="password" class="weui-input" placeholder="请输入密码" />
		</div>
	</div>
</div>
<div class="weui-flex flex_padding">
	<div class="weui-flex__item">
		<a href="javascript:;" onclick="login_click()" class="weui-btn weui-btn_primary">登录</a>
	</div>
	<div class="weui-flex__item">
		<a href="${path}/app/reg" class="weui-btn weui-btn_plain-default">注册页面</a>
	</div>
</div>

<#include "/layout/footer.ftl" />